package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class OrderController {

    //首页
    @RequestMapping("/")
    public String index(){
        return "index";
    }

    //添加订单
    @RequestMapping("/addOrder")
    public String addOrder(){
        return "addOrder";
    }
    //查询订单
    @RequestMapping("/showOrder")
    public String showOrder(){
        return "showOrder";
    }
    //修改订单
    @RequestMapping("/updateOrder")
    public String updateOrder(){
        return "updateOrder";
    }
    //删除订单
    @RequestMapping("/deleteOrder")
    public String deleteOrder(){
        return "deleteOrder";
    }

    // 登录页面
    @RequestMapping("/login")
    public String login(){
        return "login";
    }

    //登录失败页面
    @RequestMapping("/loginFail")
    public String loginFail(){
        return "error/loginFail";
    }

}
